package com.fitso.wicket.page.landing;

import java.io.Serializable;

import org.apache.wicket.markup.html.link.BookmarkablePageLink;

import com.fitso.wicket.config.SecureComponent;
import com.fitso.wicket.page.FitsoNoCacheWebPage;
import com.fitso.wicket.page.journal.FoodJournalPage;

/**
 * This is the page that a user, who has not been redirected due to session
 * timeout, is directed to after a successful login.
 * 
 * @author timothystorm
 */
@SecureComponent
public class Landing extends FitsoNoCacheWebPage implements Serializable {
	// Only change on breaking changes, i.e., removing fields
	private static final long serialVersionUID = 1L;

	private static final String TITLE = "Fitso Landing";

	public Landing() {
		super();

		add(new BookmarkablePageLink<FoodJournalPage>("FoodJournal", FoodJournalPage.class));
	}

	@Override
	public String getPageTitle() {
		return TITLE;
	}
}
